package day03;

public class OperDemo {//运算符演示

    public static void main(String[] args) {



/*char c = (char)'男';
        System.out.println(c);*/


     /*   int a = 13, b = 12;
        int max = a > b ? a : b;
        System.out.println(max);*/

      /*  int a = 1;
        int b = 2;
        System.out.println(a < b ? true : false);
*/
      /*  System.out.println(10 + 20 + 30 + "");//任何类型的数据与字符串相连,结果都是字符串类型
        System.out.println("" + 10 + 20 + 30);
        System.out.println(10 + 20 + "" + 30);

        System.out.println("\"\"");//想要输出"",需使用反斜杠转义字符*/

      /*  int age = 23;
        String name = "zhx";
        char gender = '男';
        String hobby = "game";
        System.out.println("大家好我叫" + name + "," + "性别" + gender + "," + "我今年" + age + "," + "我的爱好是" + hobby);*/


//        int a = 3, b = 6, c = 9, d = 3;


       /* a += b;
        System.out.println(a);
        b *= c;
        System.out.println(b);
        c /= d;
        System.out.println(c);
        b /= d;
        System.out.println(b);
*/




    /*
          int  age  = 200;
          boolean b1 = (a<b||c++>d);
        System.out.println(b1);
        System.out.println(c);
     */
/*
        System.out.println(a<b||b>c);//true
        System.out.println(!(a>b||a<b));//false
        System.out.println("是不是超人"+(age<0||age>100));//是
        System.out.println("是不是正常人"+!(age<0||age>100));//不是

 */


    /*
        System.out.println(a>0&&a<10);
        System.out.println(a+d == b&&b>a);
        System.out.println(a!=d&&b>d);
        System.out.println(a+b==c&&b+d==c);
        System.out.println(a*d==c&&c>d);
        System.out.println(c/d==d&&b%c==a);
     */
















        /*
        int a = 1;
        int b= 1;
        a++;
        b++;
        System.out.println(a);
        System.out.println(b);
        System.out.println(a++);
        System.out.println(b++);
        System.out.println(++a);
        System.out.println(++b);
        int c = 1;
        int d =1;
        System.out.println(c++);
        System.out.println(++d);
        int e=1;
        e=e++;
        System.out.println(e);
        System.out.println(++e);
        */
        //int a = 1;
        //int b = 1;
      /*  b--;
        --a;

       */
        /*
        System.out.println(a--);
        System.out.println(--b);
         */
        /*
        int a = 1,b=2,c=3,d=3;
        boolean b1 = a>b;
        System.out.println(b/a==2);
        System.out.println(b1);
        System.out.println(a<b);
        System.out.println(c<=d);
        System.out.println(c>=d);
        System.out.println(c==d);
        System.out.println(a!=d);
        System.out.println(b++>c);
        System.out.println(b++>c);
        System.out.println(b++>c);
*/


    }
}
